<?php


/* @var $this yii\web\View */
/* @var $model app\models\AsrMobile */

$this->title = '上传号码列表';
$this->params['breadcrumbs'][] = ['label' => '电话号码列表', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<a id="back" class="btn btn-default pull-left" href="index" ><i class="fa fa-backward"></i> 返回</a><br><br>
<div class="asr-mobile-create">

    <?= $this->render('_form', [
        'model' => $model,
    ]) ?>
</div>
<script>
    jQuery('#w0').yiiActiveForm([{
        "id": "asrmobile-listname",
        "name": "listname",
        "container": ".field-asrmobile-listname",
        "input": "#asrmobile-listname",
        "validate": function (attribute, value, messages, deferred, $form) {
            yii.validation.string(value, messages, {
                "message": "列表名称必须是一条字符串。",
                "max": 30,
                "tooLong": "列表名称只能包含至多30个字符。",
                "skipOnEmpty": 1
            });
            yii.validation.required(value, messages, {"message": "列表名称不能为空。"});
        }
    }, {
        "id": "asrmobile-file",
        "name": "file",
        "container": ".field-asrmobile-file",
        "input": "#asrmobile-file",
        "validate": function (attribute, value, messages, deferred, $form) {
            yii.validation.required(value, messages, {"message": "exel或csv文件不能为空。"});
        }
    }], []);
    })
    ;
</script>

